#include <bits/stdc++.h>

using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    int d = a / b;
    int r = a % b;
    double f = 1.0 * a / b;
    cout << d << " " << r << " " << fixed << setprecision(5) << f << endl;
    return 0;
}